# -*- coding: utf-8 -*-
'''
    项目启动文件,整个项目的入口
'''
import os
import sys
start_env = sys.argv[1]
os.environ['START_ENV'] = start_env

from app.backend import create_app


app = create_app(os.environ['START_ENV'] or 'default')

if __name__ == '__main__':
    app.run(host='127.0.0.1', port=5656)